home *** CD-ROM | disk | FTP | other *** search
/ Usenet 1993 July / InfoMagic USENET CD-ROM July 1993.ISO / sources / misc / volume12 / psf2 / part05 < prev    next >
Encoding:
Text File  |  1990-05-19  |  43.7 KB  |  1,470 lines

  1. Newsgroups: comp.sources.misc
  2. From: tony@ajfcal.UUCP (Tony Field)
  3. subject: v12i108: psf2.0 source 5/6
  4. Sender: allbery@uunet.UU.NET (Brandon S. Allbery - comp.sources.misc)
  5.  
  6. Posting-number: Volume 12, Issue 108
  7. Submitted-by: tony@ajfcal.UUCP (Tony Field)
  8. Archive-name: psf2/part05
  9.  
  10. psf2.0 source 5/6
  11. =================
  12. #! /bin/sh
  13. # This is a shell archive.  Remove anything before this line, then unpack
  14. # it by saving it into a file and typing "sh file".  To overwrite existing
  15. # files, type "sh file -c".  You can also feed this as standard input via
  16. # unshar, or by typing "sh <file", e.g..  If this archive is complete, you
  17. # will see the following message at the end:
  18. #        "End of archive 5 (of 6)."
  19. # Contents:  Readme.Unix psf.1 psf.doc
  20. # Wrapped by ajf@trifid on Tue May 15 01:10:52 1990
  21. PATH=/bin:/usr/bin:/usr/ucb ; export PATH
  22. if test -f 'Readme.Unix' -a "${1}" != "-c" ; then 
  23.   echo shar: Will not clobber existing file \"'Readme.Unix'\"
  24. else
  25. echo shar: Extracting \"'Readme.Unix'\" \(11353 characters\)
  26. sed "s/^X//" >'Readme.Unix' <<'END_OF_FILE'
  27. X                   P S F     I N S T A L L A T I O N   (AT&T Unix 3.2.2)
  28. X                   =================================
  29. X
  30. X   If you are using Xenix 2.3.x, you should be reading the file
  31. X   
  32. X           Readme.Xenix
  33. X
  34. X   If yow wish to do a manual installation, read the file:
  35. X
  36. X        Readme.Install
  37. X
  38. X   The installation script "Install.unix" and Makefile are correctly
  39. X   configured install psf correctly on AT&T Unix 3.2.2 (System V/386) by
  40. X   default. The script builds a printer model, updates the model
  41. X   directory, and (optionally) adds a printer definition to the FACE
  42. X   printer database.
  43. X
  44. X   The psf scripts and binaries (by default) are placed in
  45. X   /usr/local/bin. If this directory does not exist, it should be
  46. X   created. If you wish to use a different directory for the psf
  47. X   binaries and scripts, edit the Makefile to reflect the desired
  48. X   BINDIR.
  49. X
  50. X   Now build the binaries with "make all".
  51. X   
  52. X   If your printer is not specified in the ./defs/*.def files (i.e. when
  53. X   you run your install process and the "list of available printers"
  54. X   does not specify your particular printer), then select the nearest
  55. X   approximation or read the "Readme.Install" file (in particular, point
  56. X   4) to help you set up a printer definition for your printer.
  57. X
  58. X   If you are using a serial printer, examine the "stty" command to set
  59. X   port characteristics in psfunix.LP (which is the prototype for the
  60. X   printer model "psf")
  61. X
  62. X   Iff FACE is installed (AT&T Unix 3.2.2), the installation script
  63. X   "Install.unix" can add a printer description into the printer
  64. X   database file to describe a postscript printer.  The data base
  65. X   file is:
  66. X        /usr/vmsys/admin/PS/PORTSET/database
  67. X
  68. X   If you DO wish to have this file update, use the -f option on the
  69. X   Install.unix script. This allows the use FACE for most of the printer
  70. X   installation.
  71. X
  72. X   Without the -f option, the database is not updated.
  73. X   
  74. X   AT&T Unix users will also have to use lpadmin to select the
  75. X   postscript printer model (FACE does not allow selection of
  76. X   the printer model).
  77. X
  78. X
  79. X   PSF is installed (as root) with the command:
  80. X   
  81. X           # Install.unix [-f]
  82. X   
  83. X   where:  -f  = add Postscript-PSF printer type to the FACE database
  84. X                 (AT&T Unix 3.2.2 only)  This should NOT be specified
  85. X                 if lpadmin is to be used for printer installation.
  86. X
  87. X
  88. X
  89. X1. SELECT PRINTER TYPE
  90. X^^^^^^^^^^^^^^^^^^^^^^
  91. X   Root priviliges are probably necessary to allow the creation of
  92. X   various files.  The installation options are presented:
  93. X
  94. X        1. Select printer type,  make printer model files
  95. X    2. Move psf binaries and scripts to $BINDIR
  96. X    3. Move psf files to $SPOOLDIR
  97. X    4. Install man pages in $MANDIR
  98. X    5. Print man pages
  99. X    6. Remove psf software and files from binary and spool directories
  100. X
  101. X     ===> Select an option or enter q to quit: 1
  102. X   
  103. X   First select option 1: to select the postscript printer. After
  104. X   configuration, the various psf files remain in the current directory
  105. X   and are NOT copied to any of the binary or spooling files.
  106. X
  107. X   The printer type list is presented as follows:
  108. X
  109. X                         SELECT PRINTER TYPE
  110. X
  111. X 1: Apple LaserWriter v23.0             2: Apple LaserWriter Plus v38.0       
  112. X 3: Apple LaserWriter Plus v42.2        4: AST TurboLaser/PS v47.0            
  113. X 5: Agfa-Compugraphic 9400P v49.3       6: Dataproducts LZR-2665 v47.0        
  114. X 7: Dataproducts LZR 1260 v47.0         8: IBM 4216-020 v47.0                 
  115. X 9: IBM 4216-030 v50.5                 10: Linotronic 100 v38.0               
  116. X11: Linotronic 100 v42.5               12: Linotronic 200 v47.1               
  117. X13: Linotronic 200 v49.3               14: Linotronic 300 v47.0               
  118. X15: Linotronic 300 v47.1               16: Linotronic 300 v49.3               
  119. X17: Linotronic 500 v49.3               18: Apple LaserWriter II NT v47.0      
  120. X19: Apple LaserWriter II NTX v47.0     20: NEC LC-890 v47.0 (corrected)       
  121. X21: NEC LC-890 v47.0                   22: QMS-PS 810 v47.0                   
  122. X23: QMS-PS 800 v46.1                   24: QMS-PS 800 Plus v46.1              
  123. X25: QMS ColorScript 100 v49.3          26: Qume ScripTEN v47.0                
  124. X27: Schlumberger 5232 Color PostScript Printer v50.3
  125. X28: TI OmniLaser 2108 v45.0            29: TI Omnilaser 2115 v47.0            
  126. X30: Varityper 4200B-P v49.3            31: Varityper 4300P v49.3              
  127. X32: Varityper VT-600P v48.0            33: Varityper VT-600W v48.0            
  128. X==> Select printer by number (q = quit, r = refresh display): 
  129. X
  130. X   After the printer type is selected, you are asked to specify the
  131. X   default paper size that psf will assume unless otherwise instructed:
  132. X
  133. X    Select default page size:
  134. X      1: Letter
  135. X      2: Legal
  136. X      3: A4
  137. X      4: B5
  138. X     ==> Select page size by number (q = quit, r = refresh display): 
  139. X
  140. X   (The list of page sizes is dependent upon the selected printer type.
  141. X   As a result, the list may differ from the above sample)
  142. X
  143. X
  144. X2. BINARY/SCRIPT INSTALLATION
  145. X^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  146. X   Install the scripts and binaries in the target directory with option 2:
  147. X
  148. X        1. Select printer type,  make printer model files
  149. X    2. Move psf binaries and scripts to $BINDIR
  150. X    3. Move psf files to $SPOOLDIR
  151. X    4. Install man pages in $MANDIR
  152. X    5. Print man pages
  153. X    6. Remove psf software and files from binary and spool directories
  154. X
  155. X     ===> Select an option or enter q to quit: 2
  156. X
  157. X   By default, the destination binary and script directory is
  158. X   /usr/local/bin. Another directory (such as /usr/lbin/bin, etc) may be
  159. X   used. The only requirement is that the various users of PSF are
  160. X   pathed to the specified directory.
  161. X
  162. X       Install PSF Binaries and 
  163. X           scripts in which directory [/usr/local/bin]? 
  164. X
  165. X   The various binaries, scripts and printer defintion files are then
  166. X   copied to the appropriate target directories.  LP model and printer
  167. X   scripts are not copied.
  168. X
  169. X
  170. X3. INSTALL LP SPOOLER SCRIPTS
  171. X^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  172. X   If you intend to use psf as part of the lp back-end spooling system,
  173. X   then install the lp spooler scripts.
  174. X
  175. X   If you do NOT wish to install the lp back-end, then you may quit the
  176. X   installation process. The psf filters are manually activated (refer
  177. X   to the psf documentation file psf.1 and Readme.Install).
  178. X
  179. X   If various printer spooling directories and files are correctly set
  180. X   up, the psf model and interface files may be installed in the spool
  181. X   directory by selecting option 3:
  182. X
  183. X        1. Select printer type,  make printer model files
  184. X    2. Move psf binaries and scripts to $BINDIR
  185. X    3. Move psf files to $SPOOLDIR
  186. X    4. Install man pages in $MANDIR
  187. X    5. Print man pages
  188. X    6. Remove psf software and files from binary and spool directories
  189. X
  190. X     ===> Select an option or enter q to quit: 3
  191. X
  192. X   After the spooler scripts are installed, activate the printer. If you
  193. X   are using AT&T unix 3.2, you will probably use FACE (if installed) or
  194. X   LPADMIN to complete the printer installation.
  195. X
  196. X   Read the notes in "Configure Printer" below.
  197. X
  198. X
  199. XCONFIGURE PRINTER
  200. X^^^^^^^^^^^^^^^^^
  201. X   The printer model that must be used to print with psf is
  202. X   automatically created by Install.unix in file:
  203. X   
  204. X       /usr/spool/lp/model/psf
  205. X   
  206. X   Printer installation may be done with either lpadmin or with FACE. If
  207. X   you install the printer with lpadmin, be sure to specify the "-m psf"
  208. X   option to select the psf printer model. E.g.:
  209. X
  210. X       /usr/lib/lpadmin -p printer -v /dev/lp -m psf -o nobanner
  211. X   
  212. X   If you install with FACE, you should configure the "Postscript-PSF"
  213. X   printer. Subsequently, modify the printer model to "psf" since FACE
  214. X   cannot select a printer model other than "standard". I.e., use
  215. X   lpadmin with a command similar to:
  216. X
  217. X    /usr/lib/lpadmin -p printer -m psf -o nobanner
  218. X
  219. X
  220. X4. PRINTING MAN PAGES
  221. X^^^^^^^^^^^^^^^^^^^^^
  222. X   Optionally, you can continue with the installation if the man pages
  223. X   by selecting options 4/5 from:
  224. X
  225. X        1. Select printer type,  make printer model files
  226. X    2. Move psf binaries and scripts to $BINDIR
  227. X    3. Move psf files to $SPOOLDIR
  228. X    4. Install man pages in $MANDIR
  229. X    5. Print man pages
  230. X    6. Remove psf software and files from binary and spool directories
  231. X
  232. X     ===> Select an option or enter q to quit:
  233. X
  234. X   If your system has on-line man pages then the man-page installation
  235. X   (option 4) may be used.
  236. X
  237. X   The man pages may be printed on the postscript printer by selection
  238. X   of option 5. The installation script prints the man-pages from the
  239. X   pre-formatted *.doc files if /usr/man directory cannot be found.
  240. X
  241. X
  242. X
  243. XAFTER INSTALLATION
  244. X^^^^^^^^^^^^^^^^^^
  245. X   Edit the file "Testfile" with sed (as below). This file is an example
  246. X   of how escape seqeuences can be imbedded in a text file to allow
  247. X   direct font control within a text editor (See psf.1 for details).
  248. X
  249. X   The "Testfile" should contain many ^E characters (octal \005).  Since
  250. X   mail system may change the ^E character into the text string "005"
  251. X   You will have to edit the testfile and replace all "005" strings with
  252. X   true ctrl-E character.
  253. X
  254. X   One easy way to correct this is with sed:
  255. X
  256. X    sed 's@005@<CTRL-E>@g' Testfile > example
  257. X                   +------+
  258. X                    actually type the CTRL-E character
  259. X                    to generate the octal charcter \005
  260. X
  261. X    After editing, do the following:
  262. X    
  263. X        psf example | lp
  264. X    
  265. X    to see how font control can work in a text file.
  266. X
  267. XLP (spooler) OPTIONS
  268. X^^^^^^^^^^^^^^^^^^^^
  269. X   The provided printer model (/usr/spool/lp/model/psf and it's
  270. X   associated prototype file psfunix.LP) allows the use of the "-o" to
  271. X   pass options to psf. Two additional banner page options may be passed
  272. X   to the printer script:
  273. X
  274. X    banner        = print banner page
  275. X    nobanner    = do not print banner page
  276. X
  277. X   For example:
  278. X
  279. X    lp -o"nobanner -4xh" my.text.file
  280. X    lp -o"banner" another.file
  281. X
  282. X   The psf printer model examines the printer configuration file in:
  283. X
  284. X    /usr/spool/lp/admins/lp/printers/<printer name>/configuration
  285. X
  286. X   to determine if banners are required. The first line of this script
  287. X   normally contains one of the following (and can be set by lpadmin):
  288. X
  289. X    Banner: on:Always
  290. X    Banner: on
  291. X
  292. X   An additional option is recognized (and cannt be set by lpadmin: it
  293. X   must be manually edited into the configuration file):
  294. X
  295. X    Banner: off
  296. X
  297. X   "Banner: on:Always" forces banners to be printed, even if the user
  298. X   specified "nobanner".
  299. X
  300. X   "Banner: on" prints a banner page unless the user specifies "nobanner". 
  301. X   If "nobanner" is provided, then the banner is not printed.
  302. X
  303. X   "Banner: off" will not print the banner page unless the user 
  304. X   provides "banner", in which case the banner page is printed.
  305. X
  306. X
  307. XPSF notes.
  308. X^^^^^^^^^^
  309. X   The printer definitions in ~psf/defs are derived from the Adobe
  310. X   ".ppd" files. These are available from the Adobe file server via
  311. X   email. The programme "table" is used to translate the ".ppd" files
  312. X   into ".def" printer definition files used by psf.
  313. X
  314. X   If the user's printer is not in the list of available printers, a
  315. X   suitable .def definition must be manually constructed (see file
  316. X   "sample.def" as a guide).
  317. X
  318. X
  319. XPROBLEMS:
  320. X  
  321. X   The adobe .ppd files not not necessarily describe the "true"
  322. X   printable area of the printers. For example, the printable area of a
  323. X   NEC LC890 printer is different than described in the nec_470.ppd
  324. X   file. I do not know which .ppd files are "accurate" or "inaccurate"!
  325. X   See the Readme.Install file (in particular, point 4).
  326. END_OF_FILE
  327. if test 11353 -ne `wc -c <'Readme.Unix'`; then
  328.     echo shar: \"'Readme.Unix'\" unpacked with wrong size!
  329. fi
  330. # end of 'Readme.Unix'
  331. fi
  332. if test -f 'psf.1' -a "${1}" != "-c" ; then 
  333.   echo shar: Will not clobber existing file \"'psf.1'\"
  334. else
  335. echo shar: Extracting \"'psf.1'\" \(14237 characters\)
  336. sed "s/^X//" >'psf.1' <<'END_OF_FILE'
  337. X.TH PSF 1 ""
  338. X.SH NAME
  339. Xpsf \- postscript filter
  340. X
  341. X.SH SYNOPSIS
  342. X
  343. X.B psf
  344. X[
  345. X.B -1|2|4
  346. X] [
  347. X.B -b
  348. X.I n
  349. X] [
  350. X.B -c
  351. X.I n
  352. X] [
  353. X.B -f
  354. X.I n
  355. X] [
  356. X.B -g
  357. X.I type
  358. X] [
  359. X.B -h
  360. X]
  361. X    [
  362. X.B -H
  363. X.I text
  364. X] [
  365. X.B -i
  366. X.I n
  367. X] [
  368. X.B -l
  369. X.I n
  370. X] [
  371. X.B -L
  372. X.I n
  373. X] [
  374. X.B -m
  375. X.I n
  376. X] [
  377. X.B -n
  378. X] 
  379. X    [
  380. X.B -p
  381. X.I n
  382. X] [
  383. X.B -t
  384. X.I n
  385. X] [
  386. X.B -w 
  387. X] [
  388. X.B -x
  389. X]
  390. X.I file... >out.file
  391. X
  392. X where -1|2|4    print 1,2 or 4 up on a page (default = 1)
  393. X       -b n      select paper bin n
  394. X       -c n      print columns (based on Courier font)
  395. X       -d        allow double sided printing
  396. X       -f n      font number/name (default = 0 = Courier)
  397. X       -g type   page type (default = letter)
  398. X       -h        put file name as header on each page
  399. X       -H text   put text as header on each page
  400. X       -i n      indent left margin n points
  401. X       -l n      print lines per page
  402. X       -L n      page length in lines
  403. X       -m n      indent top margin in points
  404. X       -n        set portrait (narrow) format
  405. X       -p n      set point size to n
  406. X       -t n      set tabs to n (default = 8)
  407. X       -w        set landscape (wide) format
  408. X       -x        draw cross with 4-up page
  409. X       file..    name of files to be printed (or stdin)
  410. X
  411. X   Fonts selection with -f n  (printer dependent)
  412. X       0 Courier               1 Helvetica
  413. X       2 Times-Roman           3 AvantGarde-Book
  414. X       4 Bookman-Light         5 NewCenturySchlbk-Roman
  415. X       6 Palatino-Roman        7 Helvetical-Narrow
  416. X       8 Garamond              9 ZapfChancery-MediumItalic
  417. X.fi
  418. X
  419. X.SH DESCRIPTION
  420. X
  421. X.B Psf
  422. Xwill accept text and filter it to print on postscript printers.
  423. XThe print may be "1-up", "2-up", or "4-up" on a page. 
  424. X.B Psf
  425. Xis a general purpose filter for
  426. Xmost text and programme listings.  By using various escape 
  427. Xsequences (described below), 
  428. Xany portion of the text may be printed in
  429. Xdifferent fonts and at different point sizes.
  430. X
  431. XIf "letter" sized paper is used, the page is assumed to have 63 lines
  432. Xand 80 columns wide.  For "legal" sized paper, the effective size is
  433. X81 lines by 80 columns.  These dimensions account for the "print region"
  434. X(excluding margins) of the page.
  435. X
  436. XThe actual number of print line and characters per line may
  437. Xbe over-ridden by specifing suitable options.
  438. X
  439. XGeneral text may be printed with a command such as:
  440. X.nf
  441. X
  442. X    psf this.file that.fil | lp
  443. X.fi
  444. X
  445. X
  446. XAdditional "pre-filters" such as
  447. X.B pnf
  448. Xand
  449. X.B pmf
  450. Xcan be used to
  451. Xautomatically generate escape sequences to control font and sizes for
  452. Xprinted documents.
  453. X
  454. XIf an 
  455. X.B nroff'ed
  456. Xdocument is filtered with programme 
  457. X.B pnf
  458. X, then the
  459. Xdocument will print properly with bold-face and underlining.
  460. X
  461. XFor example, you could print the 
  462. X.B psf
  463. Xman page "2-up" with:
  464. X.nf
  465. X
  466. X      nroff -man psf.1 | pnf -ir 3 | psf -2 | lp
  467. X.fi
  468. X
  469. XRefer to the man-page for 
  470. X.B pnf/psnroff
  471. Xfor greater detail.
  472. X
  473. X.B Pmf
  474. Xis a very simple mail printing filter.  It italicizes the contents of
  475. Xvarious headers such as 'Subject:'
  476. Xand attempts to place peoples names in boldface.
  477. XIt can be used to print entire mail boxes as in:
  478. X.nf
  479. X
  480. X    pmf /usr/spool/mail/tony | psf | lp
  481. X.fi
  482. X
  483. XRefer to the man-page for 
  484. X.B pmf/psmbox
  485. Xfor greater detail.
  486. X
  487. X.SH OPTIONS
  488. X.TP
  489. X.B \-1\|2\|4
  490. XSpecify the number of logical pages that are to be printed
  491. Xon a physical page.  By default, 
  492. X.B psf
  493. Xwill print one logical
  494. Xpage per physical page.  If two logical pages are specified
  495. Xwith 
  496. X.I -2
  497. X, then two pages are printed in "landscape" format:
  498. X
  499. X.nf
  500. X      +-----------+-----------+
  501. X      |   pg 1    |   pg 2    |
  502. X      |           |           |
  503. X      +-----------+-----------+
  504. X.fi
  505. X
  506. XIf four logical pages are specified with 
  507. X.I -4
  508. X, then the pages
  509. Xare printed in "portrait format:
  510. X
  511. X.nf
  512. X      +-----------+-----------+
  513. X      |   pg 1    |   pg 3    |
  514. X      |           |           |
  515. X      +-----------+-----------+
  516. X      |   pg 2    |   pg 4    |
  517. X      |           |           |
  518. X      +-----------+-----------+
  519. X.fi
  520. X
  521. XEach logical page printed in 2-up or 4-up format contains the same number
  522. Xof lines and print columns as if it were printed in 1-up portrait format.
  523. XThe characters may be compressed or expanded horizontally to fill to the
  524. Xlogical page width. For example, if you printed with:
  525. X
  526. X.nf
  527. X       psf -4 my.text | lp
  528. X.fi
  529. X
  530. Xthen you would have four miniature pages, each of which would
  531. Xcontain 63 print lines and 80 characters on a line.
  532. X
  533. XIf you wish to compensate for the character compression/expansion, then
  534. Xuse the 
  535. X.I -c
  536. Xoption to set the print line width.
  537. X
  538. XClipping is NOT performed in 2-up and 4-up printing.  If the line lengths
  539. Xon the left half of the page exceed the logical page width, then the
  540. Xlines will overflow into the right half of the page.
  541. X
  542. X.TP
  543. X.B \-b n
  544. XSelect paper bin 
  545. X.I n.
  546. XIf this option is not specified, the
  547. Xdefault paper bin is used.
  548. X.B Psf
  549. Xassumes the paper bin number is valid for your printer.
  550. X
  551. X.TP
  552. X.B \-c n
  553. XSets the number of print columns on a line.  The character width is
  554. Xbased on the Courier font (10 pitch, character width of 7.2 points).
  555. XThe text is scaled to print the desired number of characters over
  556. Xthe entire page width.  Setting the character count does NOT alter
  557. Xthe number of print lines.
  558. X
  559. XIf you specified 
  560. X.B -c40
  561. X, the character
  562. Xwidth would be horizontally elongated to twice normal.
  563. X
  564. XIf you specified 
  565. X.B -c160
  566. X, the character width would be compressed
  567. Xto one half normal width.
  568. X
  569. X.TP
  570. X.B \-d
  571. XPrepare for double sided printing.  The resulting print stream
  572. Xmust be to a file which will subsequently filtered with 
  573. X.B psd.
  574. X
  575. XIf the printer is configured with two print trays (such as
  576. Xa Nec LC890), then the double-sided printing is automatically
  577. Xperformed.  The operator re-inserts the printed "first side" stack of paper
  578. Xinto the second tray.  Printing then continues for the "second side".
  579. X
  580. XIf the printer is not configured with two trays, the output from
  581. Xpsf must be directed to a file (not a pipe).  This file must be
  582. Xprocessed with 
  583. X.B psd
  584. Xto print double sided.  (Refer to the man page
  585. Xfor 
  586. X.B psd.
  587. X)
  588. X
  589. X.TP
  590. X.B \-f n
  591. XAny of the standard postscript 
  592. Xfonts may be selected in lieu
  593. Xof the default Courier.  These are selected from the following
  594. Xtable:
  595. X.nf
  596. X
  597. X         0 Courier
  598. X         1 Helvetica
  599. X         2 Times-Roman
  600. X         3 AvantGarde-Book
  601. X         4 Bookman-Light
  602. X         5 NewCenturySchlbk-Roman
  603. X         6 Palatino-Roman
  604. X         7 Helvetica-Narrow
  605. X         8 Garamond
  606. X         9 ZapfChancery-MediumItalic
  607. X.fi
  608. X
  609. XYour printer may not have exactly these fonts.  To see which
  610. Xfonts are configured, get the psf usage information with:
  611. X
  612. X.nf
  613. X    psf -
  614. X.fi
  615. X
  616. XSince Courier is the only fixed-pitch font, it is usually used for
  617. Xprinting of man pages or programme listings.  The other fonts are
  618. Xproportionally spaced.
  619. X
  620. XThe selected font becomes the new "default font".
  621. X
  622. XThe font may be specified either by the font number or the font
  623. Xname.  For example, the Courier font could be selected with either
  624. Xoption '-f 0' or '-f Courier'.  If the selection is by name, then
  625. Xonly a few of the characters of the name must be provided. The
  626. XNewCenturySchlbk-Roman font could be selected with the
  627. Xoption '-f New'.
  628. X
  629. X.TP
  630. X.B \-g type
  631. XSets the working paper type.  The 
  632. X.I type
  633. Xmay be one of
  634. Xthe following with the default number of lines and
  635. Xcolumns (assuming 12 point, 10 pitch characters):
  636. X
  637. X.nf
  638. X        type       lines     columns
  639. X       -------     -----     -------
  640. X       letter       63         80
  641. X       legal        81         80
  642. X       a4           67         80
  643. X       b5           58         65
  644. X.fi
  645. X
  646. XThe number of lines/columns represents the number of possible lines/columns
  647. Xin the printable region of the postscript printer - exclusive of the
  648. Xunprintable margin area.
  649. X
  650. X.TP
  651. X.B \-h
  652. XThe file name, page number and current date will be printed at
  653. Xthe top of each page.  The point size is automatically scaled to
  654. Xpermit the specified number of text lines to be printed to account
  655. Xfor the additional two lines consumed by the title line.
  656. X
  657. X.TP
  658. X.B \-H text
  659. XPlace a header (like 
  660. X.I -h
  661. X) however use 
  662. X.I text
  663. Xrather than the filename.
  664. X
  665. X.TP
  666. X.B \-i n
  667. XIndent the left margin by 
  668. X.I n
  669. Xpoints. This may be used to center
  670. Xthe text in the page.
  671. X
  672. X.TP
  673. X.B \-l n
  674. XSets the number of printed lines per page.  The default is 63 lines for
  675. Xletter sized paper.
  676. XIf more than 63 lines per page are specified, the point size is
  677. Xautomatically reduced to accomodate the line count.
  678. X
  679. XThe number of printed lines specified by 
  680. X.B -l
  681. Xmay be less than
  682. Xthe number of possible print lines specified by 
  683. X.B -L.
  684. XFor example,
  685. Xthe default total number of print lines is 63 (as though you
  686. Xhad specified 
  687. X.B -L63
  688. X).  If you used the option 
  689. X.B -l20
  690. X, then only
  691. Xthe first 20 lines of the possible 63 would be printed.  A skip
  692. Xto new page would be performed for the 21st line.
  693. X
  694. XIf you are printing text that is wider than the nominal 75-80 columns
  695. Xin width, then specify more than normal lines per page.  Then number
  696. Xof print columns available will increase with the
  697. Xnumber of lines.
  698. X
  699. X.TP
  700. X.B \-L n
  701. XSpecifies the number of lines available on the page.
  702. XIf 
  703. X.B -L
  704. Xis
  705. Xspecified, then the page scale is adjusted to accomodate the
  706. Xline count.  However, only the number of lines specified by the
  707. X.B -l
  708. Xoption will print.
  709. X
  710. XThe number of lines specified by 
  711. X.B -L
  712. Xwill be scaled to print
  713. Xbetween the top and bottom printable area of the page.  Normally,
  714. Xthe letter size page is 792 points high with 32 points unavailable
  715. Xfor printing.  Using 12 point letters, this results in a maximum
  716. Xof (792-32)/12=63.33 print lines (the 0.33 accounts for the lower case
  717. Xdecenders and underline).
  718. XIf you specified
  719. Xmore than 63 lines per page, then the page is appropriately scaled
  720. Xto print in smaller point sizes.
  721. X
  722. XThe number of lines specified by 
  723. X.B -L
  724. Xwill
  725. Xbe scaled to fit within the 760 available vertical points.
  726. X
  727. XFor example, if you specified 
  728. X.B -L31
  729. X, the number of lines on a page
  730. Xwill set to 31 and the printed characters will be twice normal size.
  731. XConversely, if you specified 
  732. X.B -L126
  733. X, then the characters would be
  734. Xone half normal size.
  735. X
  736. X.TP
  737. X.B \-m n
  738. XMove the top margin down by 
  739. X.I n
  740. Xpoints. This may be used to center
  741. Xthe text in the page.
  742. X
  743. X.TP
  744. X.B \-n
  745. XThe page is printed in portrait (narrow) format.  This is the default
  746. Xfor 1-up and 4-up printing.  If 2-up printing is selected, the page
  747. Xis printed in landscape format. If portrait layout is desired for
  748. X2-up printing, then the 
  749. X.B -n
  750. Xoption must be specified.  Landscape
  751. Xprinting requires the 
  752. X.B -w
  753. Xwide option to be used.
  754. X
  755. X.TP
  756. X.B \-p n
  757. XSets the nominal point size to 
  758. X.I n
  759. Xpoints.  This applies only
  760. Xto "1-up" printing.  If "2-up" or "4-up" or "1-up, landscape" 
  761. Xprinting is desired, the nominal point size is automatically scaled.
  762. X
  763. XThe selected point size becomes the new "default point size".
  764. X
  765. X.TP
  766. X.B \-t n
  767. XSets the width of the tab stops.  By default this is set to 8.
  768. XIf the first line of a text file contains the string "ta=", then
  769. Xthe tab stop width is automatically determined from this string.
  770. XFor example, if the first text line contains "/* ta=4 */" then
  771. Xthe tab width is automatically set to 4.  This feature is useful
  772. Xif programme source files use a tab space of 4.
  773. X
  774. X.TP
  775. X.B \-w
  776. XThe page is printed in landscape (wide, horizontal format).
  777. XThis is the default for 2-up printing.  If 1-up printing is
  778. Xdesired in landscape mode, then the 
  779. X.B -w
  780. Xswitch must be specified.
  781. XPortrait printing requires that the 
  782. X.B -n
  783. X(narrow) option be used.
  784. X
  785. XThe number of lines printed (by default) is the same as would
  786. Xbe printed in portrait layout.  Character point size is automatically
  787. Xscaled.
  788. X
  789. X.TP
  790. X.B \-x
  791. XDraws a cross in the to separate the logical pages. This is
  792. Xeffective for 4-up printing.  If 1-up or 2-up printing is used,
  793. Xthis option is ignored.
  794. X
  795. X.SH PSF NOTES
  796. X
  797. X.B Psf
  798. Xfilters text in a "minimally conforming" postscript format (as
  799. Xspecified in the Postscript Language Reference Manual). 
  800. X
  801. XIf the text contains escape sequences (possibly generated by 
  802. X.B pnf
  803. X, another
  804. Xpre-filter or a text editor), the escape sequences are analyzed to
  805. Xperform limited font and underline selection.  The escape sequences
  806. Xare translated into appropriate postscript code.
  807. X
  808. XThe permitted sequences have the
  809. Xfollowing format:
  810. X.nf
  811. X
  812. X        ^E<command>
  813. X.fi
  814. X
  815. XThe following sequences are recognized:
  816. X
  817. X.nf
  818. X         ^EB     begin bold (in current font family)
  819. X         ^Eb     end bold
  820. X         ^EI     begin italics
  821. X         ^Ei     end italics
  822. X         ^EU     begin underline
  823. X         ^Eu     end underline.
  824. X         ^EFn    begin font 'n' (0..8)
  825. X         ^Ef     revert to default font
  826. X         ^EPnn   begin point size 'nn' (2 digits)
  827. X         ^Ep     revert to default point size
  828. X         ^E+     skip 1/2 line foreward
  829. X         ^E-     skip 1/2 line backward
  830. X
  831. X    "^E" is a true ctrl-E character, not
  832. X           the ascii text string "^", "E"
  833. X.fi
  834. X
  835. XNote that point sizes with ^EPnn must be two digits such as ^EP07 or ^EP14.
  836. X
  837. XSequences may be nested: bold, italic, underlined would be 
  838. Xgenerated with:
  839. X.nf
  840. X
  841. X     ^EB^EI^EUbold, italic and underlined^Eu^Ei^Eb
  842. X.fi
  843. X
  844. XThe underline sequence should be 'innermost' to ensure that the
  845. Xunderline follows the exact font width, correct thickness and
  846. Xposition.
  847. X
  848. XFont numbers are unique to a printer.  Font 4 on one printer
  849. Xmay not be the same as font 4 on a different printer.  For a
  850. Xgiven printer, the font numbers are as specified on the
  851. Xusage menu of psf (generated with "psf --").
  852. X
  853. XAny unrecognized escape sequences are ignored.
  854. X
  855. XAny filter that can construct the above escape sequences may be
  856. Xused to provide input to 
  857. X.B psf.
  858. XThe provided 
  859. X.B pnf
  860. Xand
  861. X.B pmf
  862. Xare only two simple examples.
  863. X
  864. XIf your text editor (such as vi) is able to conveniently insert a ^E
  865. Xcharacter into text, the above sequences could be inserted
  866. Xand you would have "almost a word processor." This is a convenient
  867. Xway to add a bit of class to quick memos.
  868. X
  869. X.SH PRINTER SPOOLING
  870. X
  871. XIf 
  872. X.B psf
  873. Xhas been installed as part of the Xenix or AT&T Unix 3.2
  874. X.B lp
  875. Xspooling system,
  876. Xthen 
  877. X.B psf
  878. Xoptions may be passed in the 
  879. X.B lp
  880. Xcommand line using the 
  881. X.B -o
  882. Xoption for 
  883. X.B lp
  884. X:
  885. X
  886. X.nf
  887. X        lp -o"-4xh" this.file that.file
  888. X           --------
  889. X.fi
  890. X
  891. XFor  AT&T Unix systems, the additional options of "banner" and "nobanner"
  892. Xmay be passed to the spooler to print or not print a banner page:
  893. X
  894. X.nf
  895. X        lp -o"nobanner -4xh" this.file that.file
  896. Xor
  897. X        lp -o"banner -4xh" this.file that.file
  898. X.fi
  899. X
  900. X.SH SEE ALSO
  901. X
  902. Xpmf pnf psman psnroff psmbox lp lpadmin
  903. X
  904. X.SH AUTHOR
  905. X
  906. XTony Field.         tony@ajfcal
  907. END_OF_FILE
  908. if test 14237 -ne `wc -c <'psf.1'`; then
  909.     echo shar: \"'psf.1'\" unpacked with wrong size!
  910. fi
  911. # end of 'psf.1'
  912. fi
  913. if test -f 'psf.doc' -a "${1}" != "-c" ; then 
  914.   echo shar: Will not clobber existing file \"'psf.doc'\"
  915. else
  916. echo shar: Extracting \"'psf.doc'\" \(15470 characters\)
  917. sed "s/^X//" >'psf.doc' <<'END_OF_FILE'
  918. X
  919. X
  920. X
  921. X     PSF(1)               UNIX System V            PSF(1)
  922. X
  923. X
  924. X
  925. X     NAME
  926. X      psf -    postscript filter
  927. X
  928. X
  929. X     SYNOPSIS
  930. X      psf [    -1|2|4 ] [ -b n    ] [ -c n ] [ -f    n ] [ -g type ]    [ -h ]
  931. X          [    -H text    ] [ -i n ] [ -l    n ] [ -L n ] [ -m n ] [    -n ]
  932. X          [    -p n ] [ -t n ]    [ -w ] [ -x ] file... >out.file
  933. X
  934. X       where -1|2|4       print 1,2 or    4 up on    a page (default    = 1)
  935. X         -b n       select paper    bin n
  936. X         -c n       print columns (based    on Courier font)
  937. X         -d       allow double    sided printing
  938. X         -f n       font    number/name (default = 0 = Courier)
  939. X         -g type   page    type (default =    letter)
  940. X         -h       put file name as header on each page
  941. X         -H text   put text as header on each page
  942. X         -i n       indent left margin n    points
  943. X         -l n       print lines per page
  944. X         -L n       page    length in lines
  945. X         -m n       indent top margin in    points
  946. X         -n       set portrait    (narrow) format
  947. X         -p n       set point size to n
  948. X         -t n       set tabs to n (default = 8)
  949. X         -w       set landscape (wide)    format
  950. X         -x       draw    cross with 4-up    page
  951. X         file..       name    of files to be printed (or stdin)
  952. X
  953. X         Fonts selection with -f n    (printer dependent)
  954. X         0 Courier         1 Helvetica
  955. X         2 Times-Roman         3 AvantGarde-Book
  956. X         4 Bookman-Light     5 NewCenturySchlbk-Roman
  957. X         6 Palatino-Roman     7 Helvetical-Narrow
  958. X         8 Garamond         9 ZapfChancery-MediumItalic
  959. X
  960. X
  961. X     DESCRIPTION
  962. X      Psf will accept text and filter it to    print on postscript
  963. X      printers.  The print may be "1-up", "2-up", or "4-up"    on a
  964. X      page.    Psf is a general purpose filter    for most text and
  965. X      programme listings.  By using    various    escape sequences
  966. X      (described below), any portion of the    text may be printed in
  967. X      different fonts and at different point sizes.
  968. X
  969. X      If "letter" sized paper is used, the page is assumed to have
  970. X      63 lines and 80 columns wide.     For "legal" sized paper, the
  971. X      effective size is 81 lines by    80 columns.  These dimensions
  972. X      account for the "print region" (excluding margins) of    the
  973. X      page.
  974. X
  975. X      The actual number of print line and characters per line may
  976. X      be over-ridden by specifing suitable options.
  977. X
  978. X
  979. X
  980. X     Page 1                         (printed 5/14/90)
  981. X
  982. X
  983. X
  984. X
  985. X
  986. X
  987. X     PSF(1)               UNIX System V            PSF(1)
  988. X
  989. X
  990. X
  991. X      General text may be printed with a command such as:
  992. X
  993. X           psf this.file that.fil |    lp
  994. X
  995. X
  996. X      Additional "pre-filters" such    as pnf and pmf can be used to
  997. X      automatically    generate escape    sequences to control font and
  998. X      sizes    for printed documents.
  999. X
  1000. X      If an    nroff'ed document is filtered with programme pnf ,
  1001. X      then the document will print properly    with bold-face and
  1002. X      underlining.
  1003. X
  1004. X      For example, you could print the psf man page    "2-up" with:
  1005. X
  1006. X        nroff -man psf.1 | pnf -ir 3 | psf -2 |    lp
  1007. X
  1008. X      Refer    to the man-page    for pnf/psnroff    for greater detail.
  1009. X
  1010. X      Pmf is a very    simple mail printing filter.  It italicizes
  1011. X      the contents of various headers such as 'Subject:' and
  1012. X      attempts to place peoples names in boldface.    It can be used
  1013. X      to print entire mail boxes as    in:
  1014. X
  1015. X           pmf /usr/spool/mail/tony    | psf |    lp
  1016. X
  1017. X      Refer    to the man-page    for pmf/psmbox for greater detail.
  1018. X
  1019. X
  1020. X     OPTIONS
  1021. X      -124 Specify the number of logical pages that    are to be
  1022. X           printed on a physical page.  By default,    psf will print
  1023. X           one logical page    per physical page.  If two logical
  1024. X           pages are specified with    -2 , then two pages are
  1025. X           printed in "landscape" format:
  1026. X
  1027. X             +-----------+-----------+
  1028. X             |     pg 1     |   pg    2    |
  1029. X             |         |         |
  1030. X             +-----------+-----------+
  1031. X
  1032. X           If four logical pages are specified with    -4 , then the
  1033. X           pages are printed in "portrait format:
  1034. X
  1035. X             +-----------+-----------+
  1036. X             |     pg 1     |   pg    3    |
  1037. X             |         |         |
  1038. X             +-----------+-----------+
  1039. X             |     pg 2     |   pg    4    |
  1040. X             |         |         |
  1041. X             +-----------+-----------+
  1042. X
  1043. X
  1044. X
  1045. X
  1046. X     Page 2                         (printed 5/14/90)
  1047. X
  1048. X
  1049. X
  1050. X
  1051. X
  1052. X
  1053. X     PSF(1)               UNIX System V            PSF(1)
  1054. X
  1055. X
  1056. X
  1057. X           Each logical page printed in 2-up or 4-up format
  1058. X           contains    the same number    of lines and print columns as
  1059. X           if it were printed in 1-up portrait format.  The
  1060. X           characters may be compressed or expanded    horizontally
  1061. X           to fill to the logical page width. For example, if you
  1062. X           printed with:
  1063. X
  1064. X              psf -4 my.text | lp
  1065. X
  1066. X           then you    would have four    miniature pages, each of which
  1067. X           would contain 63    print lines and    80 characters on a
  1068. X           line.
  1069. X
  1070. X           If you wish to compensate for the character
  1071. X           compression/expansion, then use the -c option to    set
  1072. X           the print line width.
  1073. X
  1074. X           Clipping    is NOT performed in 2-up and 4-up printing.
  1075. X           If the line lengths on the left half of the page    exceed
  1076. X           the logical page    width, then the    lines will overflow
  1077. X           into the    right half of the page.
  1078. X
  1079. X
  1080. X      -b n Select paper bin    n. If this option is not specified,
  1081. X           the default paper bin is    used.  Psf assumes the paper
  1082. X           bin number is valid for your printer.
  1083. X
  1084. X
  1085. X      -c n Sets the    number of print    columns    on a line.  The
  1086. X           character width is based    on the Courier font (10    pitch,
  1087. X           character width of 7.2 points).    The text is scaled to
  1088. X           print the desired number    of characters over the entire
  1089. X           page width.  Setting the    character count    does NOT alter
  1090. X           the number of print lines.
  1091. X
  1092. X           If you specified    -c40 , the character width would be
  1093. X           horizontally elongated to twice normal.
  1094. X
  1095. X           If you specified    -c160 ,    the character width would be
  1096. X           compressed to one half normal width.
  1097. X
  1098. X
  1099. X      -d   Prepare for double sided    printing.  The resulting print
  1100. X           stream must be to a file    which will subsequently
  1101. X           filtered    with psd.
  1102. X
  1103. X           If the printer is configured with two print trays (such
  1104. X           as a Nec    LC890),    then the double-sided printing is
  1105. X           automatically performed.     The operator re-inserts the
  1106. X           printed "first side" stack of paper into    the second
  1107. X           tray.  Printing then continues for the "second side".
  1108. X
  1109. X
  1110. X
  1111. X
  1112. X     Page 3                         (printed 5/14/90)
  1113. X
  1114. X
  1115. X
  1116. X
  1117. X
  1118. X
  1119. X     PSF(1)               UNIX System V            PSF(1)
  1120. X
  1121. X
  1122. X
  1123. X           If the printer is not configured    with two trays,    the
  1124. X           output from psf must be directed    to a file (not a
  1125. X           pipe).  This file must be processed with    psd to print
  1126. X           double sided.  (Refer to    the man    page for psd. )
  1127. X
  1128. X
  1129. X      -f n Any of the standard postscript fonts may    be selected in
  1130. X           lieu of the default Courier.  These are selected    from
  1131. X           the following table:
  1132. X
  1133. X            0 Courier
  1134. X            1 Helvetica
  1135. X            2 Times-Roman
  1136. X            3 AvantGarde-Book
  1137. X            4 Bookman-Light
  1138. X            5 NewCenturySchlbk-Roman
  1139. X            6 Palatino-Roman
  1140. X            7 Helvetica-Narrow
  1141. X            8 Garamond
  1142. X            9 ZapfChancery-MediumItalic
  1143. X
  1144. X           Your printer may    not have exactly these fonts.  To see
  1145. X           which fonts are configured, get the psf usage
  1146. X           information with:
  1147. X
  1148. X            psf    -
  1149. X
  1150. X           Since Courier is    the only fixed-pitch font, it is
  1151. X           usually used for    printing of man    pages or programme
  1152. X           listings.  The other fonts are proportionally spaced.
  1153. X
  1154. X           The selected font becomes the new "default font".
  1155. X
  1156. X           The font    may be specified either    by the font number or
  1157. X           the font    name.  For example, the    Courier    font could be
  1158. X           selected    with either option '-f 0' or '-f Courier'.  If
  1159. X           the selection is    by name, then only a few of the
  1160. X           characters of the name must be provided.    The
  1161. X           NewCenturySchlbk-Roman font could be selected with the
  1162. X           option '-f New'.
  1163. X
  1164. X
  1165. X      -g type
  1166. X           Sets the    working    paper type.  The type may be one of
  1167. X           the following with the default number of    lines and
  1168. X           columns (assuming 12 point, 10 pitch characters):
  1169. X
  1170. X               type      lines        columns
  1171. X              -------      -----        -------
  1172. X              letter       63          80
  1173. X              legal       81          80
  1174. X              a4       67          80
  1175. X
  1176. X
  1177. X
  1178. X     Page 4                         (printed 5/14/90)
  1179. X
  1180. X
  1181. X
  1182. X
  1183. X
  1184. X
  1185. X     PSF(1)               UNIX System V            PSF(1)
  1186. X
  1187. X
  1188. X
  1189. X              b5       58          65
  1190. X
  1191. X           The number of lines/columns represents the number of
  1192. X           possible    lines/columns in the printable region of the
  1193. X           postscript printer - exclusive of the unprintable
  1194. X           margin area.
  1195. X
  1196. X
  1197. X      -h   The file    name, page number and current date will    be
  1198. X           printed at the top of each page.     The point size    is
  1199. X           automatically scaled to permit the specified number of
  1200. X           text lines to be    printed    to account for the additional
  1201. X           two lines consumed by the title line.
  1202. X
  1203. X
  1204. X      -H text
  1205. X           Place a header (like -h ) however use text rather than
  1206. X           the filename.
  1207. X
  1208. X
  1209. X      -i n Indent the left margin by n points. This    may be used to
  1210. X           center the text in the page.
  1211. X
  1212. X
  1213. X      -l n Sets the    number of printed lines    per page.  The default
  1214. X           is 63 lines for letter sized paper.  If more than 63
  1215. X           lines per page are specified, the point size is
  1216. X           automatically reduced to    accomodate the line count.
  1217. X
  1218. X           The number of printed lines specified by    -l may be less
  1219. X           than the    number of possible print lines specified by -
  1220. X           L. For example, the default total number    of print lines
  1221. X           is 63 (as though    you had    specified -L63 ).  If you used
  1222. X           the option -l20 , then only the first 20    lines of the
  1223. X           possible    63 would be printed.  A    skip to    new page would
  1224. X           be performed for    the 21st line.
  1225. X
  1226. X           If you are printing text    that is    wider than the nominal
  1227. X           75-80 columns in    width, then specify more than normal
  1228. X           lines per page.    Then number of print columns available
  1229. X           will increase with the number of    lines.
  1230. X
  1231. X
  1232. X      -L n Specifies the number of lines available on the page.
  1233. X           If -L is    specified, then    the page scale is adjusted to
  1234. X           accomodate the line count.  However, only the number of
  1235. X           lines specified by the -l option    will print.
  1236. X
  1237. X           The number of lines specified by    -L will    be scaled to
  1238. X           print between the top and bottom    printable area of the
  1239. X           page.  Normally,    the letter size    page is    792 points
  1240. X           high with 32 points unavailable for printing.  Using 12
  1241. X
  1242. X
  1243. X
  1244. X     Page 5                         (printed 5/14/90)
  1245. X
  1246. X
  1247. X
  1248. X
  1249. X
  1250. X
  1251. X     PSF(1)               UNIX System V            PSF(1)
  1252. X
  1253. X
  1254. X
  1255. X           point letters, this results in a    maximum    of (792-
  1256. X           32)/12=63.33 print lines    (the 0.33 accounts for the
  1257. X           lower case decenders and    underline).  If    you specified
  1258. X           more than 63 lines per page, then the page is
  1259. X           appropriately scaled to print in    smaller    point sizes.
  1260. X
  1261. X           The number of lines specified by    -L will    be scaled to
  1262. X           fit within the 760 available vertical points.
  1263. X
  1264. X           For example, if you specified -L31 , the    number of
  1265. X           lines on    a page will set    to 31 and the printed
  1266. X           characters will be twice    normal size.  Conversely, if
  1267. X           you specified -L126 , then the characters would be one
  1268. X           half normal size.
  1269. X
  1270. X
  1271. X      -m n Move the    top margin down    by n points. This may be used
  1272. X           to center the text in the page.
  1273. X
  1274. X
  1275. X      -n   The page    is printed in portrait (narrow)    format.     This
  1276. X           is the default for 1-up and 4-up    printing.  If 2-up
  1277. X           printing    is selected, the page is printed in landscape
  1278. X           format. If portrait layout is desired for 2-up
  1279. X           printing, then the -n option must be specified.
  1280. X           Landscape printing requires the -w wide option to be
  1281. X           used.
  1282. X
  1283. X
  1284. X      -p n Sets the    nominal    point size to n    points.     This applies
  1285. X           only to "1-up" printing.     If "2-up" or "4-up" or    "1-up,
  1286. X           landscape" printing is desired, the nominal point size
  1287. X           is automatically    scaled.
  1288. X
  1289. X           The selected point size becomes the new "default    point
  1290. X           size".
  1291. X
  1292. X
  1293. X      -t n Sets the    width of the tab stops.     By default this is
  1294. X           set to 8.  If the first line of a text file contains
  1295. X           the string "ta=", then the tab stop width is
  1296. X           automatically determined    from this string.  For
  1297. X           example,    if the first text line contains    "/* ta=4 */"
  1298. X           then the    tab width is automatically set to 4.  This
  1299. X           feature is useful if programme source files use a tab
  1300. X           space of    4.
  1301. X
  1302. X
  1303. X      -w   The page    is printed in landscape    (wide, horizontal
  1304. X           format).     This is the default for 2-up printing.     If
  1305. X           1-up printing is    desired    in landscape mode, then    the -w
  1306. X           switch must be specified.  Portrait printing requires
  1307. X
  1308. X
  1309. X
  1310. X     Page 6                         (printed 5/14/90)
  1311. X
  1312. X
  1313. X
  1314. X
  1315. X
  1316. X
  1317. X     PSF(1)               UNIX System V            PSF(1)
  1318. X
  1319. X
  1320. X
  1321. X           that the    -n (narrow) option be used.
  1322. X
  1323. X           The number of lines printed (by default)    is the same as
  1324. X           would be    printed    in portrait layout.  Character point
  1325. X           size is automatically scaled.
  1326. X
  1327. X
  1328. X      -x   Draws a cross in    the to separate    the logical pages.
  1329. X           This is effective for 4-up printing.  If    1-up or    2-up
  1330. X           printing    is used, this option is    ignored.
  1331. X
  1332. X
  1333. X     PSF NOTES
  1334. X      Psf filters text in a    "minimally conforming" postscript
  1335. X      format (as specified in the Postscript Language Reference
  1336. X      Manual).
  1337. X
  1338. X      If the text contains escape sequences    (possibly generated by
  1339. X      pnf ,    another    pre-filter or a    text editor), the escape
  1340. X      sequences are    analyzed to perform limited font and underline
  1341. X      selection.  The escape sequences are translated into
  1342. X      appropriate postscript code.
  1343. X
  1344. X      The permitted    sequences have the following format:
  1345. X
  1346. X          ^E<command>
  1347. X
  1348. X      The following    sequences are recognized:
  1349. X
  1350. X           ^EB       begin bold (in current font family)
  1351. X           ^Eb       end bold
  1352. X           ^EI       begin italics
  1353. X           ^Ei       end italics
  1354. X           ^EU       begin underline
  1355. X           ^Eu       end underline.
  1356. X           ^EFn       begin font 'n' (0..8)
  1357. X           ^Ef       revert to default font
  1358. X           ^EPnn   begin point size 'nn' (2 digits)
  1359. X           ^Ep       revert to default point size
  1360. X           ^E+       skip    1/2 line foreward
  1361. X           ^E-       skip    1/2 line backward
  1362. X
  1363. X           "^E" is a true ctrl-E character,    not
  1364. X              the ascii    text string "^", "E"
  1365. X
  1366. X      Note that point sizes    with ^EPnn must    be two digits such as
  1367. X      ^EP07    or ^EP14.
  1368. X
  1369. X      Sequences may    be nested: bold, italic, underlined would be
  1370. X      generated with:
  1371. X
  1372. X           ^EB^EI^EUbold, italic and underlined^Eu^Ei^Eb
  1373. X
  1374. X
  1375. X
  1376. X     Page 7                         (printed 5/14/90)
  1377. X
  1378. X
  1379. X
  1380. X
  1381. X
  1382. X
  1383. X     PSF(1)               UNIX System V            PSF(1)
  1384. X
  1385. X
  1386. X
  1387. X      The underline    sequence should    be 'innermost' to ensure that
  1388. X      the underline    follows    the exact font width, correct
  1389. X      thickness and    position.
  1390. X
  1391. X      Font numbers are unique to a printer.     Font 4    on one printer
  1392. X      may not be the same as font 4    on a different printer.     For a
  1393. X      given    printer, the font numbers are as specified on the
  1394. X      usage    menu of    psf (generated with "psf --").
  1395. X
  1396. X      Any unrecognized escape sequences are    ignored.
  1397. X
  1398. X      Any filter that can construct    the above escape sequences may
  1399. X      be used to provide input to psf. The provided    pnf and    pmf
  1400. X      are only two simple examples.
  1401. X
  1402. X      If your text editor (such as vi) is able to conveniently
  1403. X      insert a ^E character    into text, the above sequences could
  1404. X      be inserted and you would have "almost a word    processor."
  1405. X      This is a convenient way to add a bit    of class to quick
  1406. X      memos.
  1407. X
  1408. X
  1409. X     PRINTER SPOOLING
  1410. X      If psf has been installed as part of the Xenix or AT&T Unix
  1411. X      3.2 lp spooling system, then psf options may be passed in
  1412. X      the lp command line using the    -o option for lp :
  1413. X
  1414. X          lp -o"-4xh" this.file    that.file
  1415. X             --------
  1416. X
  1417. X      For  AT&T Unix systems, the additional options of "banner"
  1418. X      and "nobanner" may be    passed to the spooler to print or not
  1419. X      print    a banner page:
  1420. X
  1421. X          lp -o"nobanner -4xh" this.file that.file
  1422. X      or
  1423. X          lp -o"banner -4xh" this.file that.file
  1424. X
  1425. X
  1426. X     SEE ALSO
  1427. X      pmf pnf psman    psnroff    psmbox lp lpadmin
  1428. X
  1429. X
  1430. X     AUTHOR
  1431. X      Tony Field.          tony@ajfcal
  1432. X
  1433. X
  1434. X
  1435. X
  1436. X
  1437. X
  1438. X
  1439. X
  1440. X
  1441. X
  1442. X     Page 8                         (printed 5/14/90)
  1443. X
  1444. X
  1445. X
  1446. END_OF_FILE
  1447. if test 15470 -ne `wc -c <'psf.doc'`; then
  1448.     echo shar: \"'psf.doc'\" unpacked with wrong size!
  1449. fi
  1450. # end of 'psf.doc'
  1451. fi
  1452. echo shar: End of archive 5 \(of 6\).
  1453. cp /dev/null ark5isdone
  1454. MISSING=""
  1455. for I in 1 2 3 4 5 6 ; do
  1456.     if test ! -f ark${I}isdone ; then
  1457.     MISSING="${MISSING} ${I}"
  1458.     fi
  1459. done
  1460. if test "${MISSING}" = "" ; then
  1461.     echo You have unpacked all 6 archives.
  1462.     rm -f ark[1-9]isdone
  1463. else
  1464.     echo You still need to unpack the following archives:
  1465.     echo "        " ${MISSING}
  1466. fi
  1467. ##  End of shell archive.
  1468. exit 0
  1469.  
  1470.